home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 615 / bez / readme < prev   
Encoding:
Text File  |  1992-05-10  |  1.6 KB  |  33 lines

  1.  
  2. bez - draws bezier curves (also a manual screen saver)
  3. ------------------------------------------------------
  4.  
  5. This is a simple little screen saver I use. I generally invoke it
  6. from a shell before I leave my system. Type any key to quit. You
  7. should be able to invoke it from the desktop. Just rename it to a
  8. .prg file. Yes, I know, you can't have your screen saved while in an
  9. editor, but if your editor supports shell commands, you can. I prefer
  10. to invoke it rather than have something watch the state of the
  11. system. I feel safer if I know what is going on. It is totally safe
  12. with respect to hardware as it does not muck around with video
  13. signals as some all-black screen savers do. I think it also is more
  14. interesting than fireworks!
  15.  
  16. This is based on a code posted a long time ago. I cleaned it up and
  17. made it standalone (i.e. callable from anywhere). All you need is
  18. rand and srand and of course bios/xbios. It writes to the screen at
  19. Physbase directly and uses no line A, vdi, etc. It is therefore much
  20. faster than other line drawing routines. I think the original author
  21. posted it to show how fast some compiler was. Unfortunately, I don't
  22. remember who that was. Note that this "draws" the curve directly to
  23. screen memory, so it won't work on anything but "standard" monitors.
  24. It should work in all ST resolution modes (tested hi, med). I think
  25. the basic algorithm can be adopted for other uses. It compiles under
  26. GNU C (and probably Alcyon or Sozobon, tho not tested). Assumes int
  27. is 16-bits so use -mshort. No stdio.
  28.  
  29. Enjoy...
  30.  
  31. -Bill Rosenkranz
  32. rosenkra@convex.com
  33.